package com.yc.project1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwei
 * @create 2024-07-31 19:55
 */
@Service
public class BankBiz {          //业务层注入dao
    @Autowired
    private BankDao bankDao;
    public void showAll(){
        List<BankAccount>list=this.bankDao.findAll();
        for (BankAccount ba:list){
            System.out.println(ba);
        }
    }
}
